// 截取浏览器地址参数
function getUrlParam (paramName) {
  var url = document.location.toString();
  var arrObj = url.split("?");

  if (arrObj.length > 1) {
    var uri = arrObj[1]
    var arrPara = uri.split("&");
    var arr;

    for (var i = 0; i < arrPara.length; i++) {
      arr = arrPara[i].split("=");

      if (arr != null && arr[0] == paramName) {
        return arr[1];
      }
    }

    return "";
  } else {
    return "";
  }
}

export {
  getUrlParam
}